package com.woniuxy.controller;

import com.woniuxy.entity.ResponseEntity;
import org.apache.shiro.authz.annotation.RequiresAuthentication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: ideaAdmin
 * TODO: Class
 * TODO: 处理错误的控制器
 * Date: 2022/2/23:15:50
 * Description:
 */
@RestController
public class ErrorController {
    /**
        * TODO:处理shiro401异常
    **/
    @RequestMapping("/401")
    public ResponseEntity send401(){
        return new ResponseEntity(401,"token失效",null);
    }
}
